<template>
    <div id="wechat">
        <p>本服务由成都量晶晶科技提供</p>
        <van-loading size="24px" vertical>请稍等...</van-loading>
    </div>
</template>

<script>
export default {
    methods: {
        onSubmit() {
            this.$requests.post('/msg/wechat/oid', {
                code: this.$route.query.code
            }).then(resp => {
                this.$router.push('/stream')
            })
        }
    },
    mounted() {
        this.onSubmit()
    }
}
</script>

<style scoped>
#wechat {
    margin-top: 20px;
    text-align: center;
}
</style>
